// webpack 中 alias 使用 不需要下面方法引入
// import {render} from "react-dom";

import * as Greeter from "./greeter";

$(() => {
  ReactDOM.render(
    <h1>hello world</h1>,
    document.getElementById('app')
  );

  let arr = [
    { name: "yyyy", relation: "222", phone: "18310765654" },
    { name: "rrrr", relation: "333", phone: "18310765654" }];
  ReactDOM.render(
    <Greeter.ContactList data={arr} />,
    document.getElementById('app1')
  );
});
